package com.epam.giorgadze.task1.entity;

import com.epam.giorgadze.task1.entity.plane_type.Plane;

import java.util.ArrayList;
import java.util.List;

/**
 * User: Luka
 * Date: 07.02.14
 * Time: 18:19
 */
public class AirCompany {
    private List<Plane> planes = new ArrayList<Plane>();
    private String airportName;

    public AirCompany() {
    }

    public AirCompany(List<Plane> planes, String airportName) {
        this.planes = planes;
        this.airportName = airportName;
    }

    public List<Plane> getPlanes() {
        return planes;
    }

    public void setPlanes(List<Plane> planes) {
        this.planes = planes;
    }

    public String getAirportName() {
        return airportName;
    }

    public void setAirportName(String airportName) {
        this.airportName = airportName;
    }

    @Override
    public String toString() {
        return airportName + "\n " + planes;
    }

}
